# 受保护的属性

class Animal():
    _x = 10
    def test(self):
        print(self._x)
        print(Animal._x)

class Dog(Animal):
    def test2(self):
        print(self._x)
        print(Dog._x)
        pass
    pass


a = Animal()
a.test()

dog = Dog()
dog.test2()

print(Animal._x)
print(dog._x)

# a = 666

